package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication//扫描JavaWeb三大组件的注解
@ServletComponentScan
//@EnableTransactionManagement//扫描事务注解(springboot框架起步依赖自动配置)
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动成功");//打印正常日志信息
        /*log.error("错误日志信息");用于打印异常信息*/
    }
}
